;; 使用前需要安装python的language server
;; pip install python-lsp-server

(require 'python-mode)

(use-package lsp-pyright
  :ensure t
  :config
  :hook
  (python-mode . (lambda ()
		  (require 'lsp-pyright)
		  (lsp-deferred))))

(add-hook 'python-mode-hook 'xwos-python-mode-hook)
(defun xwos-python-mode-hook ()
  (setq-default indent-tabs-mode nil)
  (setq-default tab-width 4)
  (setq-default py-indent-tabs-mode nil))

(provide 'init_python-mode)
